import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/report',
      name: 'report',
      component: () => import('../views/Report.vue')
    },
    {
      path: '/report/:id',
      name: 'reportByClient',
      component: () => import('../views/Report.vue')
    },
    {
      path: '/cleanup',
      name: 'cleanup',
      component: () => import('../views/Cleanup.vue')
    },
    {
      path: '/cleanup/:id',
      name: 'cleanupByClient',
      component: () => import('../views/Cleanup.vue')
    }
  ]
})

export default router
